home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / python2.5 / lib-tk / FixTk.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-29  |  900b  |  37 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.5)
  3.  
  4. import sys
  5. import os
  6. prefix = os.path.join(sys.prefix, 'tcl')
  7. if os.path.exists(prefix):
  8.     if not os.environ.has_key('TCL_LIBRARY'):
  9.         for name in os.listdir(prefix):
  10.             if name.startswith('tcl'):
  11.                 tcldir = os.path.join(prefix, name)
  12.                 if os.path.isdir(tcldir):
  13.                     os.environ['TCL_LIBRARY'] = tcldir
  14.                 
  15.             os.path.isdir(tcldir)
  16.         
  17.     
  18.     import _tkinter
  19.     ver = str(_tkinter.TCL_VERSION)
  20.     if not os.environ.has_key('TK_LIBRARY'):
  21.         v = os.path.join(prefix, 'tk' + ver)
  22.         if os.path.exists(os.path.join(v, 'tclIndex')):
  23.             os.environ['TK_LIBRARY'] = v
  24.         
  25.     
  26.     if not os.environ.has_key('TIX_LIBRARY'):
  27.         for name in os.listdir(prefix):
  28.             if name.startswith('tix'):
  29.                 tixdir = os.path.join(prefix, name)
  30.                 if os.path.isdir(tixdir):
  31.                     os.environ['TIX_LIBRARY'] = tixdir
  32.                 
  33.             os.path.isdir(tixdir)
  34.         
  35.     
  36.  
  37.